home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_10_10
/
1010026b
< prev
next >
Wrap
Text File
|
1992-08-08
|
290b
|
20 lines
#include <stdio.h>
#define MAXLINE 80
main()
{
char s1[MAXLINE+1], s2[MAXLINE+1];
int n1, n2;
scanf(" %[^,],%i ,%i , %[^\n]",s1,&n1,&n2,s2);
printf("%s,%d,%d,%s\n",s1,n1,n2,s2);
return 0;
}
Input
key 1,0x20,10,value one
Output
key 1,32,10,value one